package org.jclip.runtime;

import javax.swing.JComponent;

public class ValidationError {

	private String message ;
	private JComponent component ;
	private boolean warning = false;
	private String description ;
	
	public ValidationError()
	{
		
	}
	
	public ValidationError(String msg, JComponent comp, boolean warning, String description)
	{
		setMessage(msg);
		setComponent(comp);
		setWarning(warning);
		setDescription(description);
	}
	
	public String getMessage()
	{
		return message;
	}
	
	public JComponent getComponent()
	{
		return component;
	}
	
	public boolean getWarning()
	{
		return warning;
	}
	
	public String getDescription()
	{
		return description;
	}
	
	public void setMessage(String msg)
	{
		this.message=msg;
	}
	
	public void setComponent(JComponent comp)
	{
		this.component=comp;
	}
	
	public void setWarning(boolean b)
	{
		this.warning = b;
	}
	
	public void setDescription(String d)
	{
		this.description = d;
	}
}
